<template>
  <el-checkbox
      v-model="val"
      v-bind="$attrs"
      v-on="$listeners"
      :size="preferences.FormSize"
  >
    <template v-for="(index, name) in $slots" :slot="name">
      <slot :name="name"></slot>
    </template>
  </el-checkbox>
</template>

<script>
export default {
  name: "MCheckbox",
  data() {
    return {
      val: []
    }
  },
  model:{
    prop: 'value'
  },
  props:{
    value:{
      type: [String, Number, Boolean]
    }
  },
  watch:{
    value:{
      handler(e){
        this.val = e
      },
      immediate: true
    }
  },
  components: {},
  mounted() {
  },
  methods: {}
}
</script>

<style lang="scss" scoped>

</style>